﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Domain
{
    /// <summary>
    /// 溯源
    /// </summary>
    [Table("Source")]
    public class Source
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        [Required]
        public string Productname {  get; set; }
        /// <summary>
        /// 生产批次
        /// </summary>
        [Required]
        public string Production {  get; set; }
        /// <summary>
        /// 保质期
        /// </summary>
        [Required]
        public int Expirationdate {  get; set; }
        /// <summary>
        /// 生产许可证
        /// </summary>
        public string productionlicense {  get; set; }
        /// <summary>
        /// 生产企业
        /// </summary>
        [Required]
        public string Manufacturing {  get; set; }
        /// <summary>
        /// 信息完整度
        /// </summary>
        [Required]
        public decimal Information {  get; set; }
    }
}
